package cn.icanci.loopstack.ddk.common.utils;

import cn.icanci.loopstack.ddk.common.model.config.RegisterVO;

/**
 * @author icanci
 * @since 1.0 Created in 2022/11/26 17:38
 */
public class GenRegisterKeyUtils {

    private static final String FORMAT = "%s#%s#%s#%s";

    public static String generateKey(RegisterVO register) {
        return String.format(FORMAT, register.getAppId(), register.getClientAddress(), register.getClientPort(), register.getEnv());
    }
}
